package org.glavo.bot.data

import kotlinx.serialization.decodeFromString

object Mirrors {
    private fun readMirrors(): List<String> =
        Data.jsonFormat.decodeFromString(Data.readResourceAsText("secret/Mirrors.json"))

    fun reload() {
        list = readMirrors()
    }

    var list: List<String> = readMirrors()
        private set
}